html, body {
    padding: 0;
    margin: 0;
}

h1, h2, h3, h4, h5 {
    margin: 0;
    padding: 0;
}

div, span {
    font-size: 0.5rem;
}

div::selection, span::selection,  h1::selection, h2::selection {
    background:#ccc;
    color: #3a4c71;
}

.main {
    display: flex;
    flex-direction: column;
    width: 100%;
    box-sizing: border-box;
    height: 100vh;
}

footer {
    height: 1.5rem;
    background-color: #3a4c71;
}

.nav {
    padding: 1rem;
    background-color: #3a4c71;
    color: #ffffff;
}

.title {
    display: flex;
    align-items: center;
    flex-direction: row;
}

.content {
    max-width: 1440px;
    width: 100%;
    display: flex;
    flex: 1;
    flex-direction: row;
    margin-right: auto;
    margin-left: auto;
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    min-height: 50vh;
}

.half_row {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 50%;
    height: 100%;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
}


h1 {
    font-size: 1rem;
    line-height: 1.25rem;
    margin: 0 0 0.5rem 0;
}

h2 {
    font-size: 0.75rem;
    line-height: 1rem;
    padding-bottom: 0.25rem;
}

.search {
    display: flex;
    align-items: center;
    float: right;
}

.input {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 1.5rem;
    width: 10vw;
    background-color: #f2f3f5;
    border-radius: 2px;
    padding: 0 8px;
    transition: all .2s;
    cursor: pointer;
}

.input span {
    color: #86909c;
    font-size: 0.5rem;
}

.annotate {
    font-size: 12px;
}

#filter, #result {
    min-height: 10rem;
}

#filter {
    display: flex;
    flex: 1;
    flex-direction: row;
}

#dim_bar {
    min-height: 3rem;
    position: relative;
    display: flex;
    flex-direction: column;
    width: 36%;
}

#desc_panel {
    min-height: 3rem;
    position: relative;
    width: 64%;
    display: flex;
    flex-direction: column;
}

#chosen_records {
    height: 8rem;
}

#candidates {
    position: relative;
    flex: 1;
    overflow-x: hidden;
}

#multi_choice {
    overflow-x: hidden;
}

#desc_pool {
    overflow-x: hidden;
}

#chosen_descs {
    display: flex;
    flex-direction: row;
    overflow-y: hidden;
}

#candid_pool {
    overflow-x: hidden;
}

.card_pool {
    display: flex;
    flex-wrap: wrap;
    box-sizing: border-box;
}

.row_inner {
    border-width: 0.5px;
    border-style: solid;
    border-color: #3a4c71;
    border-radius: 0.25rem;
}

.row_inner.col + .col {
    margin-top: 0.5rem;
}

.inner_head {
    position: relative;
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    border-bottom: solid;
    border-width: 0.5px;
}

.inner_body {
    padding: 0.5rem;
}

.half_row > .adjacent:first-child {
    border-radius: 0.25rem 0 0 0.25rem;
    border-right: none;
}

.half_row > .adjacent:last-child {
    border-radius: 0 0.25rem 0.25rem 0;
}

#multi_choice .dim_item {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
    margin-bottom: 0.5rem;
    padding: 0 0.5rem;
    line-height: 1.5rem;

    border-style: solid;
    border-width: 0.5px;
    border-radius: 0.125rem
}

#desc_pool .desc_item {
    line-height: 1.5rem;
    min-width: 3.8vw;
    text-align: center;
    padding: 0 0.5rem;
    margin: 0 0.25rem 0.5rem 0.25rem;
    border-style: solid;
    border-width: 0.5px;
    border-radius: 0.125rem
}

.card {
    min-width: 6vw;
    max-width: 8vw;
    margin: 0 0.25rem;

    position: relative;
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;

    border-style: solid;
    border-width: 0.5px;
    border-radius: 0.125rem
}

.card_top {
    font-size: 0.75rem;
    font-weight: bold;
    flex: 1 1 auto;
    min-height: 1px;
    padding: 0.25rem;

    border-bottom: solid;
    border-width: 0.5px;
}

.card_bottom {
    display: flex;
    flex: 1 1 auto;
    flex-direction: row;
    justify-content: space-between;
    min-height: 1px;
    padding: 0.25rem;
}

.card > .card_top, .card > .card_bottom {
    padding: 0.25rem;
}

#candid_pool .card {
    margin: 0 0.25rem 0.5rem 0.25rem;
}

.btn_small {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 1.5rem;
    width: 5vw;
    background-color: #f2f3f5;
    border-radius: 2px;
    padding: 0 8px;
    transition: all .2s;
    cursor: pointer;

    color: #3a4c71;
}

.btn:hover {
    background-color: #f2f3f5;
}

.btn:active, .btn.active {
    background-color: #3a4c71;
    color: #ffffff;
}

.btn.disabled {
    background-color: #ffffff;
    color: #00000060;
}
